<div class="container">

    <div class="page-title ui-widget-content ui-corner-all head">
	    <div class="headLeft">
        	<h1 class="icon-category">Category Manager</h1>
        </div>
    	<div class="headRight">
       		<div id="toolbar" class="toolbar-list">
            	<ul>
                    <li id="toolbar-new" class="button">
                    	<a class="toolbar"  href="<?php echo base_url('cp/article/add') ?>"><span class="icon-32-new"></span>&nbsp;&nbsp;New</a>
                    </li>
                    <li id="toolbar-edit" class="button">
                    	<a class="toolbar" href="#"><span class="icon-32-edit"></span>&nbsp;&nbsp;Edit</a>
                    </li>

                     <li id="toolbar-trash" class="button">
						<a class="toolbar" href="#"><span class="icon-32-trash"></span>&nbsp;&nbsp;Trash</a>
					</li>
					<li id="toolbar-publish" class="button">
	                    <a class="toolbar" href="#"><span class="icon-32-publish"></span>&nbsp;&nbsp;Publish</a>
            	     </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all form-container">
    <div class="portlet-header ui-widget-header" id="search-post" style="cursor: pointer;"><span class="ui-icon ui-icon-circle-arrow-s"></span>
        Tìm kiếm crawler</div>
    <div class="portlet-content" style="display: block;">
        <form id="formSearch" class="forms" method="get" action="<?php echo base_url('cp/article') ?>">

        <table class="searchForm">
            <tbody><tr>
                <td><label class="desc">Từ khóa</label></td>
                <td><input type="text" value="<?php echo @$param['keyword']; ?>" style="width:155px;" class="field text" name="keyword"></td>
                <td ><input type="submit" name="dosearch" class="submit" value="Tìm kiếm"></td>


            </tr>


        </tbody></table>


        </form>
    </div>
</div>

    <div class="hastable">
    	<form accept-charset="utf-8" method="post" name="myform" id="formlist" class="pager-form" action="http://raovatbonmua.com/cp/crawler/deleteList"><input type="hidden" id="status" name="status">
        <table>
            <thead>
                <tr>
                    <th style="border-left:0px;"><input type="checkbox" class="submit" onclick="this.value=check(this.form['id[]'])" value="check_none"></th>
                    <th>Tiều đề</th>
                    <th>Alias</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody>
            <?php if(count($records)){
				foreach($records as $key=>$item){
			?>
	            <tr>
                    <td class="center" style="border-left:0px;">
                    	<input type="checkbox" value="<?php echo $item['id']; ?>" name="id[]" class="checkbox">
                    </td>
                    <td><?php echo $item['title']; ?></td>
                    <td><?php echo $item['alias']; ?></td>
                    <td>
                       <a class="btn_no_text btn ui-state-default ui-corner-all edit" href="<?php echo base_url('cp/article/edit/'.$item['id']); ?>" >
                        <span class="ui-icon ui-icon-pencil"></span></a>
                        <a class="btn_no_text btn ui-state-default ui-corner-all delete" href="javascript:void(0)" datafld="<?php echo $item['id'] ?>"><span class="ui-icon ui-icon-trash"></span></a>
                    </td>

                </tr>
             <?php } } ?>
                </tbody>
        </table>

        </form>
    </div>
</div>
<?php echo $this->pagination->create_links(); ?>
